Optimal. Leaf size=88 \[ \frac {11 a^2 \cos (e+f x)}{3 f \sqrt {a+a \sin (e+f x)}}+\frac {7 \sec (e+f x) (a+a \sin (e+f x))^{3/2}}{3 f}-\frac {2 \sec (e+f x) (a+a \sin (e+f x))^{5/2}}{3 a f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {2792, 2934,
2725} \begin {gather*} \frac {11 a^2 \cos (e+f x)}{3 f \sqrt {a \sin (e+f x)+a}}-\frac {2 \sec (e+f x) (a \sin (e+f x)+a)^{5/2}}{3 a f}+\frac {7 \sec (e+f x) (a \sin (e+f x)+a)^{3/2}}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2792
Rule 2934
Rubi steps
\begin {align*} \int (a+a \sin (e+f x))^{3/2} \tan ^2(e+f x) \, dx &=-\frac {2 \sec (e+f x) (a+a \sin (e+f x))^{5/2}}{3 a f}+\frac {2 \int \sec ^2(e+f x) (a+a \sin (e+f x))^{3/2} \left (\frac {5 a}{2}+a \sin (e+f x)\right ) \, dx}{3 a}\\ &=\frac {7 \sec (e+f x) (a+a \sin (e+f x))^{3/2}}{3 f}-\frac {2 \sec (e+f x) (a+a \sin (e+f x))^{5/2}}{3 a f}-\frac {1}{6} (11 a) \int \sqrt {a+a \sin (e+f x)} \, dx\\ &=\frac {11 a^2 \cos (e+f x)}{3 f \sqrt {a+a \sin (e+f x)}}+\frac {7 \sec (e+f x) (a+a \sin (e+f x))^{3/2}}{3 f}-\frac {2 \sec (e+f x) (a+a \sin (e+f x))^{5/2}}{3 a f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.98, size = 46, normalized size = 0.52 \begin {gather*} \frac {a \sec (e+f x) (15+\cos (2 (e+f x))-8 \sin (e+f x)) \sqrt {a (1+\sin (e+f x))}}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.05, size = 55, normalized size = 0.62
method | result | size |
default | \(-\frac {2 a^{2} \left (1+\sin \left (f x +e \right )\right ) \left (\sin ^{2}\left (f x +e \right )+4 \sin \left (f x +e \right )-8\right )}{3 \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f}\) | \(55\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 157, normalized size = 1.78 \begin {gather*} -\frac {8 \, {\left (2 \, a^{\frac {3}{2}} - \frac {2 \, a^{\frac {3}{2}} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {3 \, a^{\frac {3}{2}} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {2 \, a^{\frac {3}{2}} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {2 \, a^{\frac {3}{2}} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}\right )}}{3 \, f {\left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - 1\right )} {\left (\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )}^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 52, normalized size = 0.59 \begin {gather*} \frac {2 \, {\left (a \cos \left (f x + e\right )^{2} - 4 \, a \sin \left (f x + e\right ) + 7 \, a\right )} \sqrt {a \sin \left (f x + e\right ) + a}}{3 \, f \cos \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}} \tan ^{2}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 222 vs.
\(2 (82) = 164\).
time = 42.48, size = 222, normalized size = 2.52 \begin {gather*} -\frac {\sqrt {2} {\left (3 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \tan \left (-\frac {1}{8} \, \pi + \frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{8} + 60 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \tan \left (-\frac {1}{8} \, \pi + \frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{6} + 50 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \tan \left (-\frac {1}{8} \, \pi + \frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{4} + 60 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \tan \left (-\frac {1}{8} \, \pi + \frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{2} + 3 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sqrt {a}}{6 \, {\left (\tan \left (-\frac {1}{8} \, \pi + \frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{7} + 3 \, \tan \left (-\frac {1}{8} \, \pi + \frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{5} + 3 \, \tan \left (-\frac {1}{8} \, \pi + \frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{3} + \tan \left (-\frac {1}{8} \, \pi + \frac {1}{4} \, f x + \frac {1}{4} \, e\right )\right )} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {tan}\left (e+f\,x\right )}^2\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________